<?php
/* [$WindsForce] (C)Hunzhiwange.COM Since 2014.07.11.
   家居公司设计师列表($$)*/

!defined('Q_PATH') && exit;

class Team_C_Controller extends InitController{

	public function index(){
		$arrJiajucompany=$this->_oParent->_arrJiajucompany;
		
		Core_Extend::getSeo($this,array(
			'title'=>"{$arrJiajucompany['jiajucompany_fullname']}网友留言",
			'keywords'=>"{$arrJiajucompany['jiajucompany_fullname']}网友留言",
			'description'=>"{$arrJiajucompany['jiajucompany_fullname']}的网友留言列表",
		));

		// 设计师列表
		$arrDesigners=Model::F_('jiajudesigner')
			->setColumns('jiajudesigner_id,user_id,jiajudesigner_name,jiajudesigner_type,jiajudesigner_style')
			->where(array('jiajucompany_id'=>$arrJiajucompany['jiajucompany_id'],'jiajudesigner_status'=>1))
			->order('jiajudesigner_type DESC,jiajudesigner_sort ASC,jiajudesigner_id DESC')
			->getAll();

		$this->assign('arrDesigners',$arrDesigners);
		$this->assign('nTotalDesigner',count($arrDesigners));
		$this->display(Jiaju_Extend::getTemplate($arrJiajucompany));
	}

}
